package com.baiku.sanhos.mapper;

import com.baiku.sanhos.pojo.entity.Record;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RecordMapper {
    int addRecord(Record record);

    int getTotalBooking(String nickName,String doctorNo);

    List<Record> selectAll(int pageSize, int offset, String nickName, String doctorNo);

    void deleteById(Integer id);

    void deleteByIds(List<Integer> ids);

    int getTotalAllBooking(String nickName);

    List<Record> selectAdminAll(int pageSize, int offset, String nickName, String doctorName);
}
